﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="MantenimientoUsuario.aspx.vb" Inherits="Devida_MantenimientoUsuario" Theme="Yahoo-Ocean" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register namespace="AjaxControlToolkit" tagprefix="AjaxControlToolkit" %>
<%@ Register src="ucAlerta.ascx" TagName="Alerta" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

<base target="_self" />
<link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" /> 
   <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
   <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />
    
    <script src="../js/jsForms/js_Consulta.js" type="text/javascript"></script>
    <script src="../js/js_windowpopup.js" type="text/javascript"></script>
    <script language="javascript" src="../Script/PrintScript.js" type="text/javascript"> </script>


    <style type="text/css">
        .style1
        {
            width: 39%;
            height: 5px;
        }
        .style2
        {
            height: 20px;
        }
        .grid
        {
            margin-top: 0px;
        }
    </style>
    <script language="javascript" type="text/javascript">

        function Resaltar_On(GridView) {
            if (GridView != null) {
                GridView.originalBgColor = GridView.style.backgroundColor;
                GridView.style.backgroundColor = "#5BADFF";
            }
        }

        function Resaltar_Off(GridView) {
            if (GridView != null) {
                GridView.style.backgroundColor = GridView.originalBgColor;
            }
        }
    
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
<asp:Label ID="Label15" runat="server" Font-Names="Arial"
                        Font-Size="17px" ForeColor="white" Text="Mantenimiento Usuario&nbsp;" 
                        Font-Bold="True" ></asp:Label> 
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <asp:UpdatePanel ID="UpdatePanel2" runat="server">
     <ContentTemplate >
    <table width="900px" cellpadding="0" cellspacing="0">
        <tr>           
            <td colspan="6" 
                style="TEXT-ALIGN:left; padding-left: 10px; padding-top: 3px;  font-size: 12px;
            font-weight: bolder;  font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color:#199A44; " 
                class="style1">
            <asp:Label ID="labelusuario" runat="server" Text="Detalle de Usuario" Font-Bold="true"> </asp:Label>
           
            </td>
        </tr>
         <tr>
            <td align="left">
                <asp:Label ID="Label6" runat="server"  CssClass="label" Text="Nombres"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="txt_nom" runat="server" CssClass="frm_formato_caja" Width="140px"></asp:TextBox>
                   <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txt_nom"
 Enabled="True" ValidChars="ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyzüÜáéíóúÁÉÍÓ ">
 </cc1:FilteredTextBoxExtender>
            </td>
            <td align="left">
                <asp:Label ID="Label8" runat="server"  CssClass="label" Text="Ap. Paterno"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="txt_paterno" runat="server" CssClass="frm_formato_caja" Width="140px"></asp:TextBox>
                <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="txt_paterno"
 Enabled="True" ValidChars="ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyzüÜáéíóúÁÉÍÓ ">
 </cc1:FilteredTextBoxExtender>
            </td>
             <td align="left">
                <asp:Label ID="Label9" runat="server"  CssClass="label" Text="Ap. Materno"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="txtmaterno" runat="server" CssClass="frm_formato_caja" Width="140px"></asp:TextBox>
                 <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="txtmaterno"
                Enabled="True" ValidChars="ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyzüÜáéíóúÁÉÍÓ ">
                </cc1:FilteredTextBoxExtender>
            </td>
        </tr>
         <tr>
            <td align="left" class="style2">
                <asp:Label ID="Label10" runat="server"  CssClass="label" Text="Ejecutor"></asp:Label>
            </td>
            <td style="padding-left:0px; text-align:left">
                <asp:DropDownList ID="ddl_eje" runat="server" CssClass="ddl" Width="145px">
                </asp:DropDownList>
            </td>
             <td align="left" class="style2">
                <asp:Label ID="Label11" runat="server"  CssClass="label" Text="Of. Zonal"></asp:Label>
            </td>
            <td style="padding-left:0px; text-align:left">
                <asp:DropDownList ID="ddl_ofizonal" runat="server" CssClass="ddl"  Width="145px">
                </asp:DropDownList>
            </td>
             <td align="left" class="style2">
                <asp:Label ID="Label12" runat="server"  CssClass="label" Text="Pper"></asp:Label>
            </td>
            <td style="padding-left:0px; text-align:left">
                <asp:DropDownList ID="ddl_pper" runat="server" CssClass="ddl"  Width="145px">
                </asp:DropDownList>
            </td>            
        </tr>
          <tr>
            <td align="left" class="style2">
                <asp:Label ID="Label13" runat="server"  CssClass="label" Text="Tipo Persona"></asp:Label>
            </td>
            <td align="left" class="style2"  >
                <asp:DropDownList ID="ddl_tp" runat="server" CssClass="ddl" Width="145px" >
                </asp:DropDownList>
            </td>
              <td align="left" class="style2">
               
            </td>
            <td class="style2">
               
            </td>
             <td align="left" class="style2">
                <asp:Label ID="Label14" runat="server"  CssClass="label" Text="Jefe Inmediato"></asp:Label>
            </td>
          <td style="padding-left:0px; text-align:left"">
                <asp:DropDownList ID="ddl_jefe" runat="server" CssClass="ddl"  Width="145px">
                </asp:DropDownList>
            </td> 
                      
        </tr>
        <tr>
            <td align="left">
                <asp:Label ID="Label1" runat="server"  CssClass="label" Text="Usuario"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="txtusuario" runat="server" CssClass="frm_formato_caja" Width="140px"></asp:TextBox>
                <cc1:FilteredTextBoxExtender ID="ftbProgramaInterno" runat="server" TargetControlID="txtusuario"
 Enabled="True" ValidChars="ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyzüÜáéíóúÁÉÍÓ">
 </cc1:FilteredTextBoxExtender>
            </td>
            <td align="left">
                <asp:Label ID="Label2" runat="server"  CssClass="label" Text="Password"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="txtpassword" runat="server" CssClass="frm_formato_caja" Width="140px"  TextMode="Password" ></asp:TextBox>
            </td>
             <td align="left">
                <asp:Label ID="Label3" runat="server"  CssClass="label" Text="Estado"></asp:Label>
            </td>
            <td style="padding-left:0px; text-align:left">
                <asp:DropDownList ID="ddl_estado" runat="server" CssClass="ddl" Width="145px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="left" class="style2">
                <asp:Label ID="Label4" runat="server"  CssClass="label" Text="Perfil"></asp:Label>
            </td>
            <td align="left" class="style2">
                <asp:DropDownList ID="ddl_perfil" runat="server" CssClass="ddl" Width="145px">
                </asp:DropDownList>
            </td>
             <td align="left" class="style2">
                <asp:Label ID="Label5" runat="server"  CssClass="label" Text="Tipo Usuario"></asp:Label>
            </td>
            <td style="padding-left:0px; text-align:left">
                <asp:DropDownList ID="ddl_tipo_usuario" runat="server" CssClass="ddl"  Width="145px">
                </asp:DropDownList>
            </td>
             <td align="left" class="style2">
                <asp:Label ID="lbl_nuevo" runat="server"  CssClass="label" Text="Nuevo"></asp:Label>
            </td>
            <td style="padding-left:0px; text-align:left">
                <asp:CheckBox ID="chkb" runat="server" CssClass="chk" AutoPostBack="true"   />
            </td>            
        </tr>
        <tr>
            <td colspan="6" style="HEIGHT: 20px;TEXT-ALIGN: left; padding-left: 10px; padding-top: 3px;  font-size: 12px;
            font-weight: bolder;  font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color:#199A44; width: 39%;">
             <asp:Label ID="labellista" runat="server" Text="Lista de Usuario" Font-Bold="true"> </asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left">
                <asp:Label id="label7" runat="server" CssClass="label" Text="Pper/Nombre/Apellido" > </asp:Label>
            </td>
            <td align="left" colspan="4">
                <asp:TextBox ID="TextBox1" runat="server" CssClass="frm_formato_caja"> </asp:TextBox>
            </td>
             <td align="right">
             <asp:ImageButton ID="boton_busca" runat="server" tooltip="Buscar" 
                     ImageUrl="~/Imagenes/btn_acclupa.jpg" Width="22px" />
            </td>
        </tr>
        <tr>                    
            <td colspan="6">
                  <div  style="border: solid 1px #99aabd; width: 900px; height: 325px; overflow: auto;"
                                    align="center">
            <asp:GridView ID="gv_usuario" runat="server" AutoGenerateColumns="False" 
                                CellPadding="4" CssClass="grid" Font-Size="8pt" GridLines="None" Width="900px">
            <RowStyle ForeColor="#333333" Font-Bold="False" BackColor="#F7F6F3" />
                <Columns>
                 <asp:BoundField HeaderText="N°" DataField="numero"  ItemStyle-HorizontalAlign="right" ItemStyle-Width="10px" />
 
                                    <asp:BoundField HeaderText="Ap. Paterno" DataField="APELLIDO_PATERNO" ItemStyle-HorizontalAlign="Left" />
                                    <asp:BoundField HeaderText="Ap. Materno" DataField="APELLIDO_MATERNO" ItemStyle-HorizontalAlign="Left" />
                                                   <asp:BoundField HeaderText="Nombres" DataField="NOMBRES" ItemStyle-HorizontalAlign="Left" />
                                    <asp:BoundField HeaderText="Oficina Zonal" DataField="oficina" ItemStyle-HorizontalAlign="Left" />
                                    <asp:BoundField HeaderText="Pper" DataField="pper" ItemStyle-HorizontalAlign="Left" />
                                    
                                    <asp:BoundField HeaderText="Usuario" DataField="USER_NAME" ItemStyle-HorizontalAlign="Left" />
                                    <asp:BoundField HeaderText="Perfil" DataField="PERFIL" ItemStyle-HorizontalAlign="Left" />
                                    <asp:BoundField HeaderText="Tipo Usuario" DataField="TIPO_USUARIO" ItemStyle-HorizontalAlign="Left" />
                                    
                                    <asp:TemplateField>
                                    <HeaderTemplate>
                                      <asp:Label ID="lbl4" runat="server" text="Estado"></asp:Label>
                                    </HeaderTemplate>
                                     
                                     <ItemTemplate>
                                     
                                     <asp:Label ID="lbl2" runat="server" Text='<%# Eval("ESTADO") %>'></asp:Label>
	                                    <asp:HiddenField ID="hfUSUARIO" runat="server" Value='<%# Eval("USUARIO") %>'  />
                                        <asp:HiddenField ID="password" runat="server" Value='<%# Eval("password") %>'  />
                                       <asp:HiddenField ID="EJECUTOR" runat="server" Value='<%# Eval("PEREJE") %>'  />
                                       <asp:HiddenField ID="TIPO_PERSONA" runat="server" Value='<%# Eval("TIPO_PERSONA") %>'  />
                                       <asp:HiddenField ID="PERSONA" runat="server" Value='<%# Eval("PERSONA") %>'  />
                                       <asp:HiddenField ID="USUARIO" runat="server" Value='<%# Eval("USUARIO") %>'  />
                                       <asp:HiddenField ID="OFICINA" runat="server" Value='<%# Eval("OFICINA2") %>'  />
                                       <asp:HiddenField ID="PPER" runat="server" Value='<%# Eval("PERPPER") %>'  />
                                       <asp:HiddenField ID="jef" runat="server" Value='<%# Eval("JEF") %>'  />
                                       <asp:HiddenField ID="PERF" runat="server" Value='<%# Eval("PRF") %>'  />
                                       <asp:HiddenField ID="TIPUSU" runat="server" Value='<%# Eval("UTIP") %>'  />
                                       <asp:HiddenField ID="STADO" runat="server" Value='<%# Eval("UST") %>'  />

	                                     </ItemTemplate>
	                                 </asp:TemplateField>

<asp:BoundField HeaderText="Jefe" DataField="jefe" ItemStyle-HorizontalAlign="Left" />
                </Columns>
                <AlternatingRowStyle BackColor="#CEDAF2" ForeColor="#003366" />
                <SelectedRowStyle BackColor="#5BADFF" Font-Bold="True" ForeColor="#333333" />



                </asp:GridView>
            
            </div> 
            
            </td>
                    
                </tr>
        <tr>
                        
                        <td align="left" class="style66" >
                               <asp:ImageButton ID="btn_guardar" runat="server" ImageUrl="~/Imagenes/btnGuardar.png" style="height: 23px" />
                            </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td align="right">                                
                        <asp:ImageButton ID="btnsalir" runat="server"  ImageUrl="~/Imagenes/btnSalir.png" />
                        </td>
                    </tr>
    </table>
        </ContentTemplate>
    
   </asp:UpdatePanel >
 
  
   <uc1:Alerta id="alerta" runat="server"></uc1:Alerta>  
</asp:Content>

